package com.glorystone.ins.vo;

import com.glorystone.ins.enums.SupplementPointTicketEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 渠道返点VO
 *
 * @author wangwei on 2018/3/20.
 */
public @Data @AllArgsConstructor @NoArgsConstructor @Builder class RebateVO {

    /**
     * 不点开票类型： 现金CASH  三方开票 TRIPLE_TICKET
     */
    private Integer type;
    /**
     * 跟单点位
     */
    private BigDecimal followTicketPoint;
    /**
     * 价税分离税点
     */
    private BigDecimal separatePoint;
    /**
     * 开票税点
     */
    private BigDecimal ticketTaxPoint;
    /**
     * 补点点位
     */
    private BigDecimal supplementPoint;
    /**
     * 开票比例
     */
    private BigDecimal ticketRate;
    /**
     * 所选产品的自留点位
     */
    private BigDecimal selfPoint;

    private Boolean percent;


    public enum TypeEnum {
        /**
         * 1. 补点开票形式为现金
         * 2. 补点开票形式为三方开票
         */
        CASH(1),
        TRIPLE_TICKET(2);

        private int value;
        TypeEnum (int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

}
